package StateMod;

// 客户端
import StateMod.code.TCPConnection;

public class Client {

    public static void main(String[] args) {
        code code = new code();
        TCPConnection connection = code.new TCPConnection();

        connection.response("listen");
        connection.doSomething(); // 应该输出: Connection is listening.

        connection.response("open");
        connection.doSomething(); // 应该输出: Connection is established.

        connection.response("close");
        connection.doSomething(); // 应该输出: Connection is closed.
    }
}
